/******************************************************************
 *
 *    tenant, Powered By uyun.cn.
 *
 *    Copyright (c) 2001-2020
 *    https://uyun.cn
 *
 *    Package:     wzg.com
 *
 *    Filename:    Test
 *
 *    Description: Test(用一句话描述该文件做什么)
 *
 *    Copyright:   Copyright (c) 2001-2020
 *
 *    Company:     uyun.cn
 *
 *    @author: 王志刚
 *
 *    @version: 1.0.0
 *
 *    Create at:   2018-01-02 下午4:02
 *
 *    Revision:
 *
 *    2018-01-02 下午4:02
 *        - first revision
 *
 *****************************************************************/
package wzg.com;

/**
 * Test(这里用一句话描述这个类的作用)
 *
 * @author wangzg
 * @version 1.0.0
 * @create 2018-01-02 下午4:02
 */
public class Test {
    public static void main(String[] args) {
        String a= "AABCD122ssss";
        String b= "AABCD122ssss";
        System.out.println(a == b);
        String s = new String("1");
        s.intern();
        String s2 = "1";
        System.out.println(s == s2);

        String s3 = new String("1") + new String("1");
        s3.intern();
        String s4 = "11";
        System.out.println(s3 == s4);
    }
}
